/*
 * Copyright (c) 2013 Hai Bison
 *
 * See the file LICENSE at the root directory of this project for copying
 * permission.
 */

package com.haibison.android.logs;

/**
 * Environment.
 * 
 * @author Hai Bison
 * @since v1.0 beta
 */
public class Env {

    /**
     * The library name.
     */
    public static final String LIB_NAME = "android-logs";

    /**
     * The library version name.
     */
    public static final String LIB_VERSION_NAME = "1.4.1";

    /**
     * The library version code.
     */
    public static final int LIB_VERSION_CODE = 8;

    /**
     * Unique ID for this library. This is used to prefix file names...
     * <p/>
     * This is generated by Python function {@code uuid.uuid4()} ^^
     */
    public static final String UID = "d30d1aaf-239b-4a51-8180-7952affd3396";

    /**
     * This is singleton class.
     */
    private Env() {
    }// Env()

    /**
     * Gets "environment" name for any arbitrary name.
     * <p/>
     * <i>Sorry for my English, it means the unique name to be used for this
     * library, to avoid of conflicting with others.</i>
     * 
     * @param name
     *            your arbitrary name.
     * @return the "environment" name.
     */
    public static final String getEnvName(CharSequence name) {
        return String.format("%s.%s.%s", LIB_NAME, UID, name);
    }// getEnvName()

}
